package de.szut.gui.options;

import javax.swing.JPasswordField;

public class OptionsPasswordField extends JPasswordField implements OptionsComponent {

	private static final long serialVersionUID = -7540441933749775027L;

	private String key;
	
	@Override
	public String getOptionComponentState() {
		return getPassword().toString();
	}

	@Override
	public void setOptionComponentState(String newState) {
		setText(newState);
	}

	@Override
	public String getOptionKey() {
		return key;
	}

	@Override
	public void setOptionKey(String key) {
		this.key = key;
	}

}
